import { MockMethod } from 'vite-plugin-mock';

export default [
  {
    // 登录接口
    url: '/mock/api/project',
    method: 'post',
    timeout: 2000,
    response: () => {
      return {
        code: 200,
        message: '登录成功',
        data: {
          username: 'admin',
          accessToken: 'admin',
          roles: ['admin']
        }
      };
    }
  }
] as MockMethod[];
